<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>INI 文件处理的变化</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration54.global-constants.html">新的全局常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration54.other.html">其他变化</a></div>
 <div class="up"><a href="migration54.html">从 PHP 5.3.X 迁移到 PHP 5.4.X</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration54.ini" class="section">
  <h2 class="title">INI 文件处理的变化</h2>
  <p class="simpara">
   下列 <var class="filename">php.ini</var> 指令被移除：
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.register-globals" class="link">register_globals</a> 和 <a href="ini.core.html#ini.register-long-arrays" class="link">register_long_arrays</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="info.configuration.html#ini.magic-quotes-gpc" class="link">magic_quotes_gpc</a> 、 <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a> 以及 <a href="sybase.configuration.html#ini.magic-quotes-sybase" class="link">magic_quotes_sybase</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.allow-call-time-pass-reference" class="link">allow_call_time_pass_reference</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="network.configuration.html#ini.define-syslog-variables" class="link">define_syslog_variables</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="misc.configuration.html#ini.syntax-highlighting" class="link">highlight.bg</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="session.configuration.html#ini.session.bug-compat-42" class="link">session.bug_compat_42</a> 和 <a href="session.configuration.html#ini.session.bug-compat-warn" class="link">session.bug_compat_warn</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.y2k-compliance" class="link">y2k_compliance</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">safe_mode</a> 、 <a href="ini.sect.safe-mode.html#ini.safe-mode-gid" class="link">safe_mode_gid</a> 、 <a href="ini.sect.safe-mode.html#ini.safe-mode-include-dir" class="link">safe_mode_include_dir</a> 、 <a href="ini.sect.safe-mode.html#ini.safe-mode-exec-dir" class="link">safe_mode_exec_dir</a> 、 <a href="ini.sect.safe-mode.html#ini.safe-mode-allowed-env-vars" class="link">safe_mode_allowed_env_vars</a> 以及 <a href="ini.sect.safe-mode.html#ini.safe-mode-protected-env-vars" class="link">safe_mode_protected_env_vars</a>
    </span>
   </li>
  </ul>
  <p class="simpara">
   新增下列 <var class="filename">php.ini</var> 指令：
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="readline.configuration.html#ini.cli.pager" class="link">cli.pager</a> 和 <a href="readline.configuration.html#ini.cli.prompt" class="link">cli.prompt</a> 对于 CLI SAPI 在交互模式中使用 readline
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="features.commandline.ini.html#ini.cli-server.color" class="link">cli_server.color</a>
    使内置用于开发的 web server 能在终端输出使用 ANSI 颜色编码。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="info.configuration.html#ini.max-input-vars" class="link">max_input_vars</a>
     - 指定 GET/POST/COOKIE 输入变量的最大长度。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.zend.multibyte" class="link">zend.multibyte</a>
     - 控制新的多字节支持。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.zend.script-encoding" class="link">zend.script_encoding</a>
     - 除非在脚本最前面出现“declare(encoding=...)”指令，否则将使用此值。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.zend.signal-check" class="link">zend.signal_check</a>
     - 在关闭时检查是否替代信号处理。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="session.configuration.html#ini.session.upload-progress.enabled" class="link">session.upload_progress.enabled</a> 、 <a href="session.configuration.html#ini.session.upload-progress.cleanup" class="link">session.upload_progress.cleanup</a> 、 <a href="session.configuration.html#ini.session.upload-progress.prefix" class="link">session.upload_progress.prefix</a> 、 <a href="session.configuration.html#ini.session.upload-progress.name" class="link">session.upload_progress.name</a><a href="session.configuration.html#ini.session.upload-progress.freq" class="link">session.upload_progress.freq</a> 、 <a href="session.configuration.html#ini.session.upload-progress.min-freq" class="link">session.upload_progress.min_freq</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.enable-post-data-reading" class="link">enable_post_data_reading</a>
     - 禁用时，POST 数据不能读取（和处理）。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ini.core.html#ini.windows-show-crt-warning" class="link">windows_show_crt_warning</a>
     - 启用时此指令显示 Windows CRT 警告。到目前为止这些警告都是默认显示的。
    </span>
   </li>
   </ul>
  <p class="simpara">
   下列 <var class="filename">php.ini</var>. 指令被变更：
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="session.configuration.html#ini.session.entropy-file" class="link">session.entropy_file</a> 现在默认为 /dev/random 或 /dev/urandom ，取决于在编译时的推测。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="session.configuration.html#ini.session.entropy-length" class="link">session.entropy_length</a> 现在默认为 32 。
    </span>
   </li>
   </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration54.global-constants.html">新的全局常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration54.other.html">其他变化</a></div>
 <div class="up"><a href="migration54.html">从 PHP 5.3.X 迁移到 PHP 5.4.X</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
